Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bc-5596-poc-update-feathersjs-mongoose #4550

Conversation

SevenWaysDP
Copy link
Contributor

@SevenWaysDP SevenWaysDP commented Nov 10, 2023

Description

Links to Tickets or other pull requests

Changes

Datasecurity

Deployment

New Repos, NPM pakages or vendor scripts

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

Notice: Please remove the WIP label if the PR is ready to review, otherwise nobody will review it.

`please set the environment variable BODYPARSER_JSON_LIMIT to min. '${Math.ceil(
1.36 * (MAXIMUM_ALLOWABLE_TOTAL_ATTACHMENTS_SIZE_BYTE / 1024 / 1024)
)}mb' for helpdesk to work correctly! (Currently: ${BODYPARSER_JSON_LIMIT})`
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formating affected, should revert this part...

@@ -38,7 +38,7 @@ class MockSyncerWithData extends Syncer {
}
}

describe('datasourceRuns service', () => {
describe.only('datasourceRuns service', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove only

@@ -19,7 +19,7 @@ const fixtures = require('../fixtures');
const { expect } = chai;
chai.use(chaiAsPromised);

describe('filePermissionHelper', () => {
describe.only('filePermissionHelper', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to remove only

@@ -5,7 +5,7 @@ const sinon = require('sinon');
const appPromise = require('../../../src/app');
const { Configuration } = require('@hpi-schul-cloud/commons');

describe('helpdesk service', function test() {
describe.only('helpdesk service', function test() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to remove only

@@ -17,7 +17,7 @@ chai.use(chaiAsPromised);
chai.use(chaiHttp);
const { expect } = chai;

describe('LdapConfigService', () => {
describe.only('LdapConfigService', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove only

@@ -88,11 +88,8 @@ function connect() {

const mongooseOptions = {
autoIndex: NODE_ENV !== ENVIRONMENTS.PRODUCTION,
poolSize: MONGOOSE_CONNECTION_POOL_SIZE,
minPoolSize: MONGOOSE_CONNECTION_POOL_SIZE, //https://mongoosejs.com/docs/migrating_to_6.html#mongodb-driver-40 ??
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mongoose 5.x poolSize option is equivalent to the Mongoose 6 maxPoolSize option. The default value of maxPoolSize has been increased to 100.

I guess we should add a maxPoolSize too. Default seems to be 100
In dof app we have

MONGOOSE_CONNECTION_POOL_SIZE:
    value: "50"

so, we had a (max) 50 and now is min 50 to 100. Will that not cause any issues?

@virgilchiriac virgilchiriac changed the title Bc-5596-poc-update-feathersjs-mongoos Bc-5596-poc-update-feathersjs-mongoose Nov 21, 2023
@virgilchiriac virgilchiriac force-pushed the BC-5828-feathers-update branch from 4373645 to b5c18df Compare November 29, 2023 16:56
@SevenWaysDP SevenWaysDP closed this Dec 5, 2023
@SevenWaysDP SevenWaysDP deleted the bc-5596-poc-update-feathersjs-mongoos branch December 5, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants